!function(o,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("MahjongPhoenix_3W4kR",[],n):"object"==typeof exports?exports.MahjongPhoenix_3W4kR=n():o.MahjongPhoenix_3W4kR=n()}(self,(()=>(()=>{"use strict";function o(){return window.matchMedia("(orientation: landscape)").matches}function n(){return document.isFullScreen||document.webkitIsFullScreen||document.mozIsFullScreen||document.msIsFullScreen}const e=document.getElementById("g-shell");function t(){var t;void 0===window.orientation&&-1===navigator.userAgent.indexOf("IEMobile")||/ipad/i.test(navigator.userAgent.toLowerCase())||(o()&&(t=e,n()&&(document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():t.mozRequestExitFullScreen?t.mozRequestExitFullScreen():document.msExitFullscreen&&document.msExitFullscreen())),document.getElementById("landscape-to-portrait").style.display=o()?"block":"none",window.onresize=()=>document.body.height=window.innerHeight,window.onresize())}return t(),window.addEventListener("resize",(()=>t())),window.addEventListener("orientationchange",(()=>t())),window.addEventListener("onStart",(()=>t())),window.addEventListener("touchmove",(o=>o.preventDefault()),{passive:!1}),window.addEventListener("wheel",(o=>o.preventDefault()),{passive:!1}),window.addEventListener("keydown",(o=>{(o.ctrlKey&&"r"!==o.key||o.code.startsWith("F")&&o.code.length>1&&"F5"!==o.code)&&o.preventDefault()}),{passive:!1}),window.addEventListener("touchend",(()=>{return t=e,void(n()||o()||(t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen()));var t})),{}})()));